package com.sdry.service.impl.hpf;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.hpf.FinishProductLibraryOutMapper;
import com.sdry.model.hpf.FinishProductLibraryOut;
import com.sdry.service.hpf.FinishProductLibraryOutService;

/**
 * @ClassName: FinishProductLibraryOutServiceImpl 
 * @Description:成品库出库Service实现
 * @Author hpf
 * @Date 2019年1月28日 下午3:21:18 
 * @version 1.0
 */
@Service
public class FinishProductLibraryOutServiceImpl implements FinishProductLibraryOutService {

	@Resource
	private FinishProductLibraryOutMapper finishProductLibraryOutMapper;
	
	
	/**
	 * 成品库出库总数
	 * @param finishProductLibraryOut
	 * @return
	 */
	public Integer countFinishProductLibraryOut(FinishProductLibraryOut finishProductLibraryOut) {
		// TODO Auto-generated method stub
		return finishProductLibraryOutMapper.countFinishProductLibraryOut(finishProductLibraryOut);
	}

	/**
	 * 分页查询成品库出库
	 * @param map
	 * @return
	 */
	public List<FinishProductLibraryOut> listPageFinishProductLibraryOut(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return finishProductLibraryOutMapper.listPageFinishProductLibraryOut(map);
	}

	/**
	 * 查询所有成品库出库
	 * @return
	 */
	public List<FinishProductLibraryOut> listAllFinishProductLibraryOut() {
		// TODO Auto-generated method stub
		return finishProductLibraryOutMapper.listAllFinishProductLibraryOut();
	}

	/**
	 * 新增成品库出库
	 * @param finishProductLibraryOut 成品库出库实体
	 * @return
	 */
	public Integer insertFinishProductLibraryOut(FinishProductLibraryOut finishProductLibraryOut) {
		// TODO Auto-generated method stub
		return finishProductLibraryOutMapper.insertFinishProductLibraryOut(finishProductLibraryOut);
	}

}
